From: Giovanni Campagna Date: Thu, 16 Aug 2012 17:02:31 +0000 (+0200) Subject: Hide user menu and a11y menu in the screen lock X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6184 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=cbb56b6128611e65f22069c5f2716032b77c34d0;p=gnome-shell.git Hide user menu and a11y menu in the screen lock This is a temporary patch. The user menu button needs to move to the left, and the a11y menu in some cases needs to be hidden outside of the screen lock too. https://bugzilla.gnome.org/show_bug.cgi?id=681143 --- diff --git a/js/ui/status/accessibility.js b/js/ui/status/accessibility.js index 9cdc62531..a2409f67c 100644 --- a/js/ui/status/accessibility.js +++ b/js/ui/status/accessibility.js @@ -76,7 +76,7 @@ const ATIndicator = new Lang.Class({ }, setLockedState: function(locked) { - this.menu.setSettingsVisibility(!locked); + this.actor.visible = !locked; }, _buildItemExtended: function(string, initial_value, writable, on_set) { diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js index 2f743015f..08d09a594 100644 --- a/js/ui/userMenu.js +++ b/js/ui/userMenu.js @@ -540,9 +540,7 @@ const UserMenuButton = new Lang.Class({ }, setLockedState: function(locked) { - if (locked) - this.menu.close(); - this.actor.reactive = !locked; + this.actor.visible = !locked; }, _onDestroy: function() {